package com.routz.wxarticlelist.demo.wx_util.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 微信用户信息
 * </p>
 *
 * @author nieqiurong
 * @since 2019-02-22
 */
public class WxUserInfo extends Model<WxUserInfo> {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String userId;

    /**
     * 授权码
     */
    private String authCode;

    /**
     * 授权码超时时间
     */
    private Long authCodeExpirationTime;

    /**
     * 微信用户access_token
     */
    private String authorizerAccessToken;

    /**
     * 微信用户refresh_token
     */
    private String authorizerRefreshToken;

    /**
     * 授权方appid
     */
    private String authorizerAppid;

    /**
     * 授权有效期
     */
    private Long authorizerExpiresIn;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public Long getAuthCodeExpirationTime() {
        return authCodeExpirationTime;
    }

    public void setAuthCodeExpirationTime(Long authCodeExpirationTime) {
        this.authCodeExpirationTime = authCodeExpirationTime;
    }

    public String getAuthorizerAccessToken() {
        return authorizerAccessToken;
    }

    public void setAuthorizerAccessToken(String authorizerAccessToken) {
        this.authorizerAccessToken = authorizerAccessToken;
    }

    public String getAuthorizerRefreshToken() {
        return authorizerRefreshToken;
    }

    public void setAuthorizerRefreshToken(String authorizerRefreshToken) {
        this.authorizerRefreshToken = authorizerRefreshToken;
    }

    public String getAuthorizerAppid() {
        return authorizerAppid;
    }

    public void setAuthorizerAppid(String authorizerAppid) {
        this.authorizerAppid = authorizerAppid;
    }

    public Long getAuthorizerExpiresIn() {
        return authorizerExpiresIn;
    }

    public void setAuthorizerExpiresIn(Long authorizerExpiresIn) {
        this.authorizerExpiresIn = authorizerExpiresIn;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WxUserInfo{" +
        "id=" + id +
        ", userId=" + userId +
        ", authCode=" + authCode +
        ", authCodeExpirationTime=" + authCodeExpirationTime +
        ", authorizerAccessToken=" + authorizerAccessToken +
        ", authorizerRefreshToken=" + authorizerRefreshToken +
        ", authorizerAppid=" + authorizerAppid +
        ", authorizerExpiresIn=" + authorizerExpiresIn +
        "}";
    }
}
